import os


class Tools:
    @staticmethod
    def resource_path(fileName):
        curpath = os.path.dirname(os.path.abspath(__file__))
        root = curpath.replace("util", "")
        print(root+fileName)
        return root+fileName


if __name__ == "__main__":
    q = Tools()
    r = q.resource_path("tmp\\config.ini")
    print("----"+r)
